<table cellspacing="1" class="adminlist">
  <thead>
    <tr>
      <th width="20"> # </th>
      <th width="20"> <input type="checkbox" onclick="checkAll();" value="" name="toggle">
      </th>
      <th class="title">计划编号</th>
      <th nowrap="nowrap" class="title">农场编号</th>
      <th nowrap="nowrap">植物编号</th>
      <th nowrap="nowrap">  实施日期  </th>
      <th nowrap="nowrap"> 记录人员  </th>
      <th nowrap="nowrap">  已做的操作  </th>
      <th nowrap="nowrap">  病虫害  </th>
      <th nowrap="nowrap">  植物状态  </th>
      <th nowrap="nowrap"> 操作 </th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <td colspan="12"><?php echo $this->page->getListFooter(); ?></td>
    </tr>
  </tfoot>
  <tbody>
    <?php 
		$i = -1;
		foreach($this->data as $v):?>
    <tr class="row<?php echo $i++?>">
      <td align="right"><?php echo $v['id'];?></td>
      <td width="20"><input type="checkbox" onclick="isChecked(this.checked);" value="<?php echo $v['id'];?>" name="cid[]" id="cb<?php echo $i?>" /></td>
      <td><?php echo $v['id'];?></td>
      <td><?php echo $v['ppid']['field'];?></td>
      <td><?php echo $v['ppid']['plant'];?></td>
      <td><?php echo $v['date'];?></td>
      <td><?php echo $v['uid'];?></td>
      <td>
	  	<?php foreach($v['ppoid'] as $v2) foreach ($v2 as $v3) echo $v3['custom'],'<br />';?>
      </td>
      <td><?php echo $v['dids'];?></td>
      <td><?php echo $v['status'];?></td>
      <td align="center"><a href="###"><img src="<?php echo JURI::root()?>images/edit.png"/> </a><a href="###"><img src="<?php echo JURI::root()?>images/delete1.png"/> </a></td>
    </tr>
    <?php endforeach;?>
  </tbody>
</table>
